/**
 * @ Author: luoqi
 * @ Create Time: 2025-06-29 20:26
 * @ Modified by: luoqi
 * @ Modified time: 2025-07-14 04:41
 * @ Description:
 */

#ifndef _QSTR_H
#define _QSTR_H
#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>
#include <stddef.h>

#ifndef QNULL
#define QNULL ((void *)0)
#endif

#define QSTR(x) #x
#define QSTR_EXP(x) QSTR(x)
#define QSTR_LEN(x) (sizeof(QSTR(x)) - 1)

int qstrcmp(const void *s1, const void *s2);

void *qmemcpy(void *dest, const void *src, size_t n);

void *qmemset(void *ptr, int c, size_t n);

size_t qstrlen(const void *s);

int qstr2num(const void *s);

#ifdef __cplusplus
}
#endif
#endif
